package com.juli.school.app.controller;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.juli.school.service.bo.ContestBo;
import com.juli.school.service.bo.ErBo;
import com.juli.school.service.bo.GroupBo;
import com.juli.school.service.bo.GroupSmsBo;
import com.juli.school.service.bo.HonorBo;
import com.juli.school.service.bo.JobBo;
import com.juli.school.service.bo.LegBo;
import com.juli.school.service.bo.LoveBo;
import com.juli.school.service.bo.MallBo;
import com.juli.school.service.bo.MindBo;
import com.juli.school.service.bo.MissBo;
import com.juli.school.service.bo.NewsBo;
import com.juli.school.service.bo.PointBo;
import com.juli.school.service.bo.SmartBo;
import com.juli.school.service.impl.AppInsertService;
import com.juli.school.utils.core.model.CommonResp;

@Controller
@RequestMapping("/ssm")
public class AppInsertController {
	
	@Resource
	AppInsertService appInsertService;
	
	@RequestMapping("/insertTableMiss")
	@ResponseBody CommonResp<Boolean> insertTableMiss(MissBo miss){
		return appInsertService.insertTableMiss(miss);
	}
	
	@RequestMapping("/insertTableSmart")
	@ResponseBody CommonResp<Boolean> insertTableSmart(SmartBo smart){
		return appInsertService.insertTableSmart(smart);
	}
	
	@RequestMapping("/insertTableLove")
	@ResponseBody CommonResp<Boolean> insertTableLove(LoveBo love){
		return appInsertService.insertTableLove(love);
	}
	
	@RequestMapping("/insertTableGroup")
	@ResponseBody CommonResp<Boolean> insertTableGroup(GroupBo group){
		return appInsertService.insertTableGroup(group);
	}
	
	@RequestMapping("/insertTableGroupSms")
	@ResponseBody CommonResp<Boolean> insertTableGroupSms(GroupSmsBo groupSms){
		return appInsertService.insertTableGroupSms(groupSms);
	}
	
	@RequestMapping("/insertTableNews")
	@ResponseBody CommonResp<Boolean> insertTableNews(NewsBo news){
		return appInsertService.insertTableNews(news);
	}
	
	@RequestMapping("/insertTableContest")
	@ResponseBody CommonResp<Boolean> insertTableContest(ContestBo contest){
		return appInsertService.insertTableContest(contest);
	}
	
	@RequestMapping("/insertTableMall")
	@ResponseBody CommonResp<Boolean> insertTableMall(MallBo mall){
		return appInsertService.insertTableMall(mall);
	}
	
	@RequestMapping("/insertTableJob")
	@ResponseBody CommonResp<Boolean> insertTableJob(JobBo job){
		return appInsertService.insertTableJob(job);
	}
	
	@RequestMapping("/insertTablePoint")
	@ResponseBody CommonResp<Boolean> insertTablePoint(PointBo point){
		return appInsertService.insertTablePoint(point);
	}
	
	@RequestMapping("/insertTableMind")
	@ResponseBody CommonResp<Boolean> insertTableMind(MindBo mind){
		return appInsertService.insertTableMind(mind);
	}
	
	@RequestMapping("/insertTableLeg")
	@ResponseBody CommonResp<Boolean> insertTableLeg(LegBo leg){
		return appInsertService.insertTableLeg(leg);
	}
	
	@RequestMapping("/insertTableEr")
	@ResponseBody CommonResp<Boolean> insertTableEr(ErBo er){
		return appInsertService.insertTableEr(er);
	}
	
	@RequestMapping("/insertTableHonor")
	@ResponseBody CommonResp<Boolean> insertTableHonor(HonorBo honor){
		return appInsertService.insertTableHonor(honor);
	}
}
